package resolver

// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.

import (
	"context"
	"fmt"

	"mall/service/wpgql/api/internal/graph/generated"
	"mall/service/wpgql/api/internal/graph/model"
)

func (r *mediaItemResolver) Ancestors(ctx context.Context, obj *model.MediaItem, first *int, last *int, after *string, before *string, where *model.HierarchicalContentNodeToContentNodeAncestorsConnectionWhereArgs) (*model.HierarchicalContentNodeToContentNodeAncestorsConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) Children(ctx context.Context, obj *model.MediaItem, first *int, last *int, after *string, before *string, where *model.HierarchicalContentNodeToContentNodeChildrenConnectionWhereArgs) (*model.HierarchicalContentNodeToContentNodeChildrenConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) Comments(ctx context.Context, obj *model.MediaItem, first *int, last *int, after *string, before *string, where *model.MediaItemToCommentConnectionWhereArgs) (*model.MediaItemToCommentConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) EnqueuedScripts(ctx context.Context, obj *model.MediaItem, first *int, last *int, after *string, before *string) (*model.ContentNodeToEnqueuedScriptConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) EnqueuedStylesheets(ctx context.Context, obj *model.MediaItem, first *int, last *int, after *string, before *string) (*model.ContentNodeToEnqueuedStylesheetConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) FileSize(ctx context.Context, obj *model.MediaItem, size *model.MediaItemSizeEnum) (*int, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) Sizes(ctx context.Context, obj *model.MediaItem, size *model.MediaItemSizeEnum) (*string, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) SourceURL(ctx context.Context, obj *model.MediaItem, size *model.MediaItemSizeEnum) (*string, error) {
	var sourceURL string
	if obj != nil {
		if obj.SourceURL != nil {
			sourceURL = *obj.SourceURL
		}
	}

	return &sourceURL, nil
}

func (r *mediaItemResolver) SrcSet(ctx context.Context, obj *model.MediaItem, size *model.MediaItemSizeEnum) (*string, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mediaItemResolver) Title(ctx context.Context, obj *model.MediaItem, format *model.PostObjectFieldFormatEnum) (*string, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mutationResolver) CreateMediaItem(ctx context.Context, input model.CreateMediaItemInput) (*model.CreateMediaItemPayload, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mutationResolver) DeleteMediaItem(ctx context.Context, input model.DeleteMediaItemInput) (*model.DeleteMediaItemPayload, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *mutationResolver) UpdateMediaItem(ctx context.Context, input model.UpdateMediaItemInput) (*model.UpdateMediaItemPayload, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *queryResolver) MediaItem(ctx context.Context, id string, idType *model.MediaItemIDType, asPreview *bool) (*model.MediaItem, error) {
	panic(fmt.Errorf("not implemented"))
}

func (r *queryResolver) MediaItems(ctx context.Context, first *int, last *int, after *string, before *string, where *model.RootQueryToMediaItemConnectionWhereArgs) (*model.RootQueryToMediaItemConnection, error) {
	panic(fmt.Errorf("not implemented"))
}

// MediaItem returns generated.MediaItemResolver implementation.
func (r *Resolver) MediaItem() generated.MediaItemResolver { return &mediaItemResolver{r} }

type mediaItemResolver struct{ *Resolver }
